# -*- coding:UTF-8 -*-

import matplotlib
matplotlib.use('TkAgg')
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np

fig = plt.figure()
ax = fig.add_subplot(111)
# df = pd.read_excel('first.xlsx', 'Sheet1')
# ax.hist(df['Age'], bins=7)

ax.hist([2,3,1,4,2,3], bins=4 )
plt.title('Age distribution')
plt.xlabel('Age')
plt.ylabel('Employee')
plt.show()


"""
f1 对比图 https://matplotlib.org/gallery/statistics/barchart_demo.html#sphx-glr-gallery-statistics-barchart-demo-py
和下图一样
p,c,f  条形图  https://www.cnblogs.com/alimin1987/p/8047247.html
https://www.jianshu.com/p/ea0a63a73ffa

roc 针对分类器

roc 曲线 https://blog.csdn.net/u014568921/article/details/53843311

roc  https://blog.csdn.net/sinat_26917383/article/details/75199996?locationNum=3&fps=1
http://scikit-learn.org/stable/auto_examples/model_selection/plot_roc.html

https://blog.csdn.net/u014568921/article/details/53843311
"""